/**
 * 
 */
package com.roshan.util;

/**
 * @author roshan
 * 
 */
@SuppressWarnings("nls")
public interface CommonConstants {

    // Regular Expression

    String EMAIL_REGEXP = "^\\w+?(\\w|\\.|\\-)*\\@(((\\w+?(\\w|\\-)*?\\w)|(\\w))\\.)+\\w+$";

    String NUMERIC_REGEXP = "^[0-9]+$";

    String USER_NAME_REGEXP = "^[a-zA-Z0-9]+$";

    String ZIP_REGEXP = "^[0-9]+$";

    String FIRST_NAME_REGEXP = "^[a-zA-Z-_.'\\s]+$";

    String LAST_NAME_REGEXP = "^[a-zA-Z-_.'\\s]+$";

    String MOBILE_NUMBER_REGEXP = "^[0-9]+$";

    String WEB_URL_REGEXP = "^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]";

    String PASSWORD_REGEXP = "^[a-zA-Z0-9~!@#$%^&*()-_{}.]+$";

    String WHITESPACE_AND_SPECIAL_REGEXP = "[^a-zA-Z0-9]+";

    String CARRIAGE_RETURN_AND_LINEFEED_RGX = "[\\r\\n]|&#xd;";

    // Ranges

    int MIN_USERNAME_LENGTH = 6;

    int MAX_USERNAME_LENGTH = 20;

    int MIN_PASSWORD_LENGTH = 6;

    int MAX_PASSWORD_LENGTH = 20;

}
